# Contributor:
# Maintainer:
pkgname=xva-img
pkgver=1.4.2
pkgrel=1
pkgdesc="tool for converting XVA images"
url="https://github.com/eriklax/xva-img"
arch="all"
license="GPL-2.0-or-later"
makedepends="openssl-dev>3 cmake"
source="xva-img-$pkgver.tar.gz::https://github.com/eriklax/xva-img/archive/$pkgver.tar.gz"

build() {
	cmake -B build . \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DPREFIX=/usr
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="df33eb83cf510b2b644f3c2916f3fea712e2a6a0e20b2e4223dde3a25220d3e0fd8eebcfd48f91c49687c62c0b908cddf6eeab9066fb71faac6b85826f851b87  xva-img-1.4.2.tar.gz"
